﻿using System.Collections.Generic;
using System.Windows;

namespace SubhadraSolutions.Sharp.Utils.TestApplication.Wpf
{
    using SubhadraSolutions.Sharp.Utils.Tests.DummyClasses;

    /// <summary>
    /// Interaction logic for DataGridWindow.xaml
    /// </summary>
    public partial class DataGridWindow : Window
    {
        private static readonly object Synclock = new object();

        public DataGridWindow(IList<Employee1> list)
        {
            lock (Synclock)
            {
                this.Employees = list;
                InitializeComponent();
                //this.EmployeeDataGrid.n
                this.EmployeeDataGrid.DataContext = this;
            }
        }

        public IList<Employee1> Employees
        {
            get; set; 
        }
    }
}
